<div class="modal fade" id="myModalErrors" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-body alert-danger">
                @if(count($errors)>0)
                    <ul>
                        @foreach($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                    <script>
                        window.onload=function(){
                            $('#myModalErrors').modal({
                                keyboard: true
                            })
                        }
                    </script>
                @endif
            </div>
        </div>
    </div>
</div>
